package com.abocode.aichat.app.user.api.command;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * Created by guanxf on 2015/12/16.
 */
@Data
public class UpdateUserAccountCommand {
    @NotNull
    @Size(min = 6, max = 50)
    private String   password;
    @NotNull
    @Pattern(regexp = "([a-zA-Z0-9_]*[a-zA-Z_][a-zA-Z0-9_]*)")
    @Size(min =4, max = 50)
    private String   account;
}
